//
//  TYThemeDefines.h
//  Pods
//
//  Created by 尼奥 on 2020/9/10.
//

#ifndef TYThemeDefines_h
#define TYThemeDefines_h


#define TOP_BAR_TEXT_COLOR          [TYTheme theme].status_font_color
#define TOP_BAR_BACKGROUND_COLOR    [TYTheme theme].status_bg_color
#define TAB_BAR_TEXT_COLOR          [TYTheme theme].tab_bg_color.N1
#define TAB_BAR_BACKGROUND_COLOR    [TYTheme theme].tab_bg_color


#define BUTTON_BACKGROUND_COLOR     [TYTheme theme].primary_button_bg_color
#define MAIN_COLOR                  BUTTON_BACKGROUND_COLOR
#define MAIN_BACKGROUND_COLOR       [TYTheme theme].app_bg_color
#define LIST_MAIN_TEXT_COLOR        [TYTheme theme].list_bg_color.N1
#define LIST_SUB_TEXT_COLOR         [TYTheme theme].list_bg_color.N2
#define LIST_LINE_COLOR             [TYTheme theme].list_line_color
#define LIST_BACKGROUND_COLOR       [TYTheme theme].list_bg_color
#define LIST_LIGHT_TEXT_COLOR       [TYTheme theme].list_secondary_color
#define MAIN_FONT_COLOR             LIST_MAIN_TEXT_COLOR
#define SUB_FONT_COLOR              LIST_SUB_TEXT_COLOR
#define SEPARATOR_LINE_COLOR        LIST_LINE_COLOR
#define BUTTON_TEXT_COLOR           [TYTheme theme].primary_button_bg_color.N1
#define NOTICE_BACKGROUND_COLOR     [TYTheme theme].B1
#define NOTICE_TEXT_COLOR           [TYTheme theme].B1.N1
#define LIGHT_FONT_COLOR            LIST_LIGHT_TEXT_COLOR
#define SUB_BUTTON_TEXT_COLOR       [TYTheme theme].secondary_button_font_color
#define SUB_BUTTON_BACKGROUND_COLOR [TYTheme theme].secondary_button_bg_color

/// 以 iPhone 6 为标准，根据屏幕进行等比缩放
#define TY_ThemeScreenAdaptionLength(length) (length * [UIScreen mainScreen].bounds.size.width / 375.0)

/// 获取主题对象
#define TY_THEME [TYTheme theme]

#endif /* TYThemeDefines_h */
